package com.cn.jinl.domain;

import com.cn.jinl.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class LineOther {
    private String id;

    private String deviceCode;

    private String taskId;

    private String planName;
    private String gradeValue;

    private String zjValue;

    private String cdValue;

    private String zlValue;

    private String qwValue;

    private String zzValue;

    private String wgValue;

    private String phValue;

    private String jkValue;

    private String lineStatus;

    private String checkTime;

    private Date createTime;

    private Date updateTime;

    private String createUserName;

    private String status;

    private String whiteDay;

    private String dutyDay;

    private String zjUserName;

    private String tabName;

    private String lineType;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "待机", "1", "开机生产", "2", "停机");


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode == null ? null : deviceCode.trim();
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId == null ? null : taskId.trim();
    }

    public String getZjValue() {
        return zjValue;
    }

    public void setZjValue(String zjValue) {
        this.zjValue = zjValue == null ? null : zjValue.trim();
    }

    public String getCdValue() {
        return cdValue;
    }

    public void setCdValue(String cdValue) {
        this.cdValue = cdValue == null ? null : cdValue.trim();
    }

    public String getZlValue() {
        return zlValue;
    }

    public void setZlValue(String zlValue) {
        this.zlValue = zlValue == null ? null : zlValue.trim();
    }

    public String getQwValue() {
        return qwValue;
    }

    public void setQwValue(String qwValue) {
        this.qwValue = qwValue == null ? null : qwValue.trim();
    }

    public String getZzValue() {
        return zzValue;
    }

    public void setZzValue(String zzValue) {
        this.zzValue = zzValue == null ? null : zzValue.trim();
    }

    public String getWgValue() {
        return wgValue;
    }

    public void setWgValue(String wgValue) {
        this.wgValue = wgValue == null ? null : wgValue.trim();
    }

    public String getPhValue() {
        return phValue;
    }

    public void setPhValue(String phValue) {
        this.phValue = phValue == null ? null : phValue.trim();
    }

    public String getJkValue() {
        return jkValue;
    }

    public void setJkValue(String jkValue) {
        this.jkValue = jkValue == null ? null : jkValue.trim();
    }

    public String getLineStatusCn() {
        return STATUSMAP.get(getLineStatus());
    }
    public String getLineStatus() {
        return lineStatus;
    }

    public void setLineStatus(String lineStatus) {
        this.lineStatus = lineStatus == null ? null : lineStatus.trim();
    }

    public String getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(String checkTime) {
        this.checkTime = checkTime == null ? null : checkTime.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName == null ? null : createUserName.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getWhiteDay() {
        return whiteDay;
    }

    public void setWhiteDay(String whiteDay) {
        this.whiteDay = whiteDay == null ? null : whiteDay.trim();
    }

    public String getDutyDay() {
        return dutyDay;
    }

    public void setDutyDay(String dutyDay) {
        this.dutyDay = dutyDay == null ? null : dutyDay.trim();
    }

    public String getZjUserName() {
        return zjUserName;
    }

    public void setZjUserName(String zjUserName) {
        this.zjUserName = zjUserName == null ? null : zjUserName.trim();
    }

    public String getTabName() {
        return tabName;
    }

    public void setTabName(String tabName) {
        this.tabName = tabName == null ? null : tabName.trim();
    }

    public String getLineType() {
        return lineType;
    }

    public void setLineType(String lineType) {
        this.lineType = lineType == null ? null : lineType.trim();
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue;
    }

    public String getCreateTimeFt(){
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }
}